﻿namespace ExcelAutomator.Configuration
{
	public class ExecutorConfigurationWrapper
	{
		public string Type { get; private set; }
		public string Namespace { get; private set; }
		public string XmlConfiguration { get; private set; }

		public ExecutorConfigurationWrapper(string type, string @namespace, string xmlConfiguration)
		{
			Type = type;
			Namespace = @namespace;
			XmlConfiguration = xmlConfiguration;
		}

		public ExecutorConfigurationWrapper(string type, string @namespace, ExecutorConfigurationBase executorConfigurationBase) : this(type, @namespace, ConfigurationBuilder.WriteXml(executorConfigurationBase, Constants.ExecutorExtensionsNamespace))
		{
		}
	}
}